﻿# CMakeList.txt : CMake project for MyFirstOCCT, include source and define
# project specific logic here.
#

# Add source to this project's executable.
add_executable (MyFirstOCCT "MyFirstOCCT.cpp" "MyFirstOCCT.h")

if (CMAKE_VERSION VERSION_GREATER 3.12)
  set_property(TARGET MyFirstOCCT PROPERTY CXX_STANDARD 20)
endif()

find_package(OpenCASCADE REQUIRED)
find_package(VTK REQUIRED)
find_package(Qt6 REQUIRED)

include_directories(${OpenCASCADE_INCLUDE_DIR})

if(CMAKE_BUILD_TYPE STREQUAL "Debug")
	set_property(TARGET MyFirstOCCT PROPERTY VS_DEBUGGER_ENVIRONMENT "PATH=${OpenCASCADE_DIR}/../../occt7.9.1_runtime;$(PATH)")
elseif(CMAKE_BUILD_TYPE STREQUAL "Release")
	set_property(TARGET MyFirstOCCT PROPERTY VS_DEBUGGER_ENVIRONMENT "PATH=${OpenCASCADE_DIR}/../../occt7.9.1_runtime_release;$(PATH)")
endif()

target_link_libraries(MyFirstOCCT ${OpenCASCADE_LIBRARIES} ${VTK_LIBRARIES})
# TODO: Add tests and install targets if needed.
